<?php //strip
/**
 * Implementation of the model for addresses of catalog items.
 * 
 * @package odCatalogWpPlugin
 * @subpackage odCatalogWpPlugin_Models
 * @author Ondrej Donek <ondrejd@gmail.com>
 */
class odCatalogWpPlugin_Models_Address extends odWpPlugin_Model_Simple
{
	public function __construct()
	{
		global $wpdb;
		
		$this->mTableName = $wpdb->prefix . 'catalog_items_addresses';
		$this->mPrimary = 'ID';
		$this->mCheckColumn = 'street';
		$this->mColumns = array(
			'ID' => array('type' => 'int', 'primary' => true),
			'street' => array('type' => 'char'),
			'city' => array('type' => 'char'),
			'zip' => array('type' => 'char', 'length' => 10),
			'phone' => array('type' => 'char', 'length' => 25),
			'fax' => array('type' => 'char', 'length' => 25),
			'mobile' => array('type' => 'char', 'length' => 25)
		);
	}
}  // End of odCatalogWpPlugin_Models_Address
